package com.hello.booksale.entity;

import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class CartEntity {
    int cartId;
    String userName;
    int bookId;
    int bookNum;
    String bookUrl;
    String bookName;
    String bookDetail;
    String bookAuthor;
    double bookPrice;
    String cartTime;
    public CartEntity(String userName, int bookId, int bookNum, String bookUrl, String bookName, String bookDetail, String bookAuthor, double bookPrice, String cartTime) {
        this.userName = userName;
        this.bookId = bookId;
        this.bookNum = bookNum;
        this.bookUrl = bookUrl;
        this.bookName = bookName;
        this.bookDetail = bookDetail;
        this.bookAuthor = bookAuthor;
        this.bookPrice = bookPrice;
        this.cartTime = cartTime;
    }
}